$(function(){
	$("#housename").blur(function(){
		var housename=$("#housename").val();
		if(housename.trim()==""||housename.trim()==null){			
			$("#housephoneid").html("请填写房东姓名").css('color','red');
		}else{
			$("#housephoneid").html("");
		}
	});
	
	$("#housephone").blur(function(){
		var patrn=/^(13[0-9]|15[0-9]|18[0-9])\d{8}$/;
		 var tele= $("#housephone").val();
		if(patrn.test(tele)==false){
			$("#housephoneid").html("请填写正确格式的手机号").css('color','red');
		}else{
			$("#housephoneid").html("");
		}	
	});
	
	$("#housemancard").blur(function(){
		  var tele= $("#housemancard").val();
		  var patrn=/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
		  if(patrn.test(tele)==false){
		   $("#housephoneid").html("请填写正确的身份证号").css('color','red');
		  }else{
		   $("#housephoneid").html("");
		  }
	})
	
	$("#infomation").blur(function(){
		var infomation=$("#infomation").val();
		if(infomation.trim()==""||infomation.trim()==null){			
			$("#infomationid").html("请填写录入员的姓名").css('color','red');
		}else{
			$("#infomationid").html("");
		}
	})
})